<?php
namespace app\index\controller;
/**
 * Created by Submint Text.
 * User: hetaoren<452649510@qq.com>
 * Date: 2017/03/10
 * Explain: 基础控制器
 */
use think\Controller;
class Base extends Controller {
	public function __construct(){
		parent::__construct();
		$this->assign("v",time());
	}
    protected function fetch($template = '', $vars = [], $replace = [], $config = [])
    {
    	$replace['__INDEX__'] = str_replace('/index.php','',\think\Request::instance()->root()).'/app/index/view';
        return $this->view->fetch($template, $vars, $replace, $config);
    }

	public function getVerify(){
		HTRVerify();
	}
	
	public function uploadPic(){
		return HTRUploadPic(1);
	}

	/**
    * 编辑器上传文件
    */
    public function editorUpload(){
        return HTREditUpload(1);
    }
}